/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.fyx.linker.web;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 * Hlavni managed beana pro pristup k praci s odkazy pro 
 * vystupni vrstvu JSF.
 * 
 * @author xljan
 */
@ManagedBean(name="lm")
@RequestScoped
public class LinkerMb {
    @EJB
    private LinkerLocal linkMaker;

    /** Creates a new instance of LinkMakerMb */
    public LinkerMb() {
    }
    
    public String ml(String link){
        return linkMaker.getLink(link);
    }
    // TODO dodelat String... links.
    public String ml(String a, String b){
        return linkMaker.getLink(a + b);
    }
    public String ml(String a, String b, String c){
        return linkMaker.getLink(a + b + c);
    }
    public String ml(String a, String b, String c, String d){
        return linkMaker.getLink(a + b + c + d);
    }
    public String ml(String a, String b, String c, String d, String e){
        return linkMaker.getLink(a + b + c + d + e);
    }
}
